import 'package:flutter_taotaoshipin/generated/json/base/json_field.dart';
import 'package:flutter_taotaoshipin/generated/json/user_drama_log_list_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class UserDramaLogListEntity {
	String? title;
	@JSONField(name: "drama_name")
	String? dramaName;
	int? money;
	@JSONField(name: "give_money")
	int? giveMoney;
	@JSONField(name: "buy_time")
	int? buyTime;

	UserDramaLogListEntity();

	factory UserDramaLogListEntity.fromJson(Map<String, dynamic> json) => $UserDramaLogListEntityFromJson(json);

	Map<String, dynamic> toJson() => $UserDramaLogListEntityToJson(this);

	UserDramaLogListEntity copyWith({String? title, String? dramaName, int? money, int? giveMoney, int? buyTime}) {
		return UserDramaLogListEntity()
			..title= title ?? this.title
			..dramaName= dramaName ?? this.dramaName
			..money= money ?? this.money
			..giveMoney= giveMoney ?? this.giveMoney
			..buyTime= buyTime ?? this.buyTime;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}